home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / appkit.665 < prev    next >
Text File  |  1992-02-06  |  1KB  |  38 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;\f2\fswiss Helvetica;}
  2. \paperw11440
  3. \paperh7680
  4. \margl120
  5. \margr120
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 Rich Text\
  8.     \
  9. Q:  In my app I have overridden the Text object methods:  \
  10. \
  11.  
  12. \f1\fs24\fi720 readRichText:atPosition: \
  13. writeRichText:forRun:atPosition:emitDefaultRichText.  \
  14.  
  15. \f0\fs28\fi0 \
  16. However no matter what I try these methods are not getting called.  I have also tried implementing the equivalent delegate methods:\
  17. \
  18.  
  19. \f1\fs24\fi720 textWillReadRichText:stream:atPosition: \
  20. textWillWriteRichText:stream:forRun:atPosition:emitDefaultRichText: \
  21.  
  22. \f0\fs28\fi0 \
  23. but I'm not getting anywhere here either.  What am I doing wrong?\
  24.  
  25. \i     \
  26.  
  27. \i0 A:  While these methods were implemented under 1.0, they have been obsoleted by 
  28. \f1\fs24 replaceSelWithCell:
  29. \f0\fs28  and it's associated methods in 2.0.  Although these methods appear in the header file and the spec sheet for the Text object, they will never be called within your application.\
  30. \
  31. \
  32. QA665        \
  33. \
  34. Not valid for 1.0\
  35. Valid for 2.0        \
  36. \
  37.  
  38.